/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.luxoft.corporate.blog.db;

import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Egor
 */
public interface Controller<T> {

    List<T> getData(Query selectQuery) throws SQLException;

    T addData(Query insetQuery) throws SQLException;

    T removeData(Query deleteQuery) throws SQLException;

    T modifyData(Query updateQuery) throws SQLException;

}
